package com.ehi.alliance.service;

import com.ehi.alliance.dao.AllianceDao;
import com.ehi.common.domain.alliance.AllianceInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(SpringRunner.class)
@SpringBootTest
public class AllianceServiceTest {
    @Autowired
    AllianceDao dao;

    @Test
    public void test() {
        AllianceInfo info = dao.getByAllianceId("5");
        assertThat(info.getCountyCode()).isEqualTo("NLD");
    }

}
